import { getCityAll } from "@/services"
import { defineStore } from "pinia"

export const useCityStore = defineStore("city", {
  state() {
    return {
      cityAll: {},
      currentCity: { cityName: "广州" },
    }
  },
  actions: {
    async fetchCityData() {
      const res = await getCityAll()
      this.cityAll = res.data
    },
  },
})
